﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP_RORZE_TOOL.Tool.BaoCaoKeHoach
{
    public class ReportConstants
    {
        public const string FormName = "Báo cáo kế hoạch";
        public class ReportName
        {
            public const string PWTSDelete = "Xóa dữ liệu báo cáo cũ";
            public const string PWTSUpdate = "Lấy dữ liệu báo cáo mới";
            public const string QBCBieuThoigianchaymayNgayVN = "QBCBieuThoigianchaymayNgay VN";
            public const string QBCBieuthoigianchaymayNgayJP = "QBCBieuThoigianchaymayNgay JP";
            public const string QTGCMCross_CrosstabVN = "QTGCMCross_CrosstabVN";
            public const string QTGCMCross_CrosstabJP = "QTGCMCross_CrosstabJP";
            public const string QBChangNG = "Báo cáo NG";
            public const string Qketquagiaconghangloat = "Báo cáo KQ gia công hàng loạt";
            public const string Qketquachaythu = "Báo cáo KQ chạy thử";

            public const string CurrentData = "Dữ liệu làm báo cáo hiện tại";
            public const string WorkNameGetAll = "WorkName Get All";
            public const string ShiftGetAll = "Shift Get All";

        }

        public class Table
        {
            public const string Shift = "Shift";
            public const string WorkName = "WorkName";

        }
        public class Message
        {
            public const string DateIsNotNull = "Please enter the date in the format \"MM/DD/YYYY\".";
            public const string DateIsWrongFormat = "Please enter the date in the format \"YYYY-MM\".";

            public const string AddSuccess = "Data added Successfully";
            public const string AddSuccessAndQuestion = "Data added succesfully. Do you want to continue adding data?";
            public const string UpdateSuccessAndQuestion = "Data updated succesfully. Do you want to update again?";
            public const string AddFailed = "An error occurred while inserting the record to database. Please try again.";
            public const string UpdateSuccess = "Update Successfully";
            public const string UpdateFailed = "An error occurred while updating the record to database. Please try again.";
            public const string DeleteQuestion = "Do you want to permanently delete this item(s)?";
            public const string DeleteFailed = "Error occurred when deleting data. Please try again.";
            public const string FormAlreadyOpened = "This form is already opened.";
            public const string TableIsNull = "No data to edit/delete.";
            public const string QuestionUpdateTool = "Are you sure you want to replace the data from {0} into {1}?";
            public const string NoDataToExport = "No data to export.";
            public const string ErrorToExport = "cannot export.";
            public const string ImportSuccessfully = "Import {0} row(s) successfully. Do you want to refresh data now?";
            public const string ImportSuccessfullyLog = "Table [333_Import]: Import {0} row(s) successfully.";
            public const string ImportFailedLog = "Table [333_Import]: Import data failed.\n Message: {0}";
            public const string QuestionOpenFileExport = "Do you want to open the file?";
        }

        public class ReportId
        {
            public const int PWTSDelete = 1;
            public const int PWTSUpdate = 2;
            public const int QBCBieuThoigianchaymayNgayVN = 3;
            public const int QBCBieuthoigianchaymayNgayJP = 4;
            public const int QTGCMCross_CrosstabVN = 5;
            public const int QTGCMCross_CrosstabJP = 6;
            public const int QBChangNG = 7;
            public const int Qketquagiaconghangloat = 8;
            public const int Qketquachaythu = 9;

            public const int Shift = 10;
            public const int WorkName = 11;
        }

        public class StoredProcedure
        {
            public const string PWTSDelete = "Sp_242_Rpt_PWTSDelete";
            public const string PWTSUpdate = "Sp_242_Rpt_PWTSUpdate";
            public const string PWTSUpdateGetAll = "Sp_242_Rpt_PWTSUpdateGetAll";
            public const string QBCBieuThoigianchaymayNgayVN = "Sp_242_Rpt_QBCBieuThoigianchaymayNgay_VN";
            public const string QBCBieuthoigianchaymayNgayJP = "Sp_242_Rpt_QBCBieuThoigianchaymayNgay_JP";
            public const string QTGCMCross_CrosstabVN = "Sp_242_Rpt_QTGCMCross_CrosstabVN";
            public const string QTGCMCross_CrosstabJP = "Sp_242_Rpt_QTGCMCross_CrosstabJP";
            public const string QBChangNG = "Sp_242_Rpt_QBChangNG";
            public const string Qketquagiaconghangloat = "Sp_242_Rpt_Qketquagiaconghangloat";
            public const string Qketquachaythu = "Sp_242_Rpt_Qketquachaythu";

            public const string WorkNameGetAll = "Sp_242_WorkName_GetAll";

        }



        public class Item
        {
            public string Name;
            public int Value;
            public Item(string name, int value = -1)
            {
                Name = name; Value = value;
            }
            public override string ToString()
            {
                // Generates the text shown in the combo box
                return Name;
            }
        }
    }
}
